package com.jiang.jixiang.ui.adapter;

import androidx.annotation.NonNull;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.jiang.jixiang.R;
import com.jiang.jixiang.bean.BankListBean;
import com.ws.universal.tools.utils.StringUtils;

public class MyCardAdapter extends BaseQuickAdapter<BankListBean.BankList, BaseViewHolder> {
    public MyCardAdapter() {
        super(R.layout.item_mycard);
        addChildClickViewIds(R.id.llUnbind);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder holder, BankListBean.BankList bean) {
        holder.setText(R.id.tvItemBankName, bean.brand);
        holder.setText(R.id.tvItemBankNo, StringUtils.getString("**** **** **** **** ", bean.last4));

    }
}
